package TDATopFive;

public class tester {
	public static void main(String[] args){
		Comparador<Integer> comp=new Comparador<Integer>();
		TopFive<Integer,String> top=new TopCinco(comp);
		top.insert(1, "hola");
		top.insert(2, "hola");
		top.insert(2, "cuatro");
		top.insert(3, "hola");
		top.insert(4, "dos");
		top.insert(8, "uno");
		top.insert(2, "tres");
		top.insert( 1,"cinco");
		top.insert( 1,"seis");
		top.insert( 3,"dos");
		top.insert( 7,"cinco");
		for(int i=0;i<5;i++){
			System.out.println(top.getpos(i).getKey()+" "+top.getpos(i).getValue());
		}
	}

}
